package com.yyge.entity;

import java.io.Serializable;
import java.util.List;
import java.util.Objects;

/**
 * (GoodsInfo)实体类
 *
 * @author yyge
 * @since 2023-05-07 13:52:00
 */
public class GoodsInfo {
    public GoodsInfo() {
    }

    public GoodsInfo(Integer goodsId) {
        this.goodsId = goodsId;
    }
    /**
     * 商品编号
     */
    private Integer goodsId;
    /**
     * 商品名称
     */
    private String goodsName;
    /**
     * 商品货号
     */
    private String goodsSerial;
    /**
     * 商品图片
     */
    private String goodsImg;
    /**
     * 商品排序值
     */
    private Integer goodsSort;
    /**
     * 所属一级分类（rw_goods_type）
     */
    private Integer typeParentId;
    /**
     * 所属二级分类（rw_goods_type）
     */
    private Integer typeMiddleId;
    /**
     * 所属三级分类（rw_goods_type）
     */
    private Integer typeSubId;
    /**
     * 商品库存
     */
    private Integer storeNumber;
    /**
     * 商品已售
     */
    private Integer selledNumber;
    /**
     * 报警数量
     */
    private Integer warnNumber;
    /**
     * 市场价
     */
    private Double marketPrice;
    /**
     * 商店售价
     */
    private Double shopPrice;
    /**
     * 默认1上架。 0下架
     */
    private Integer goodsEnable;
    /**
     * 商品详情
     */
    private String summary;
    /**
     * 1代表新品
     */
    private Integer isnew;
    /**
     * 1代表热卖
     */
    private Integer ishot;
    /**
     * 1代表首页推荐
     */
    private Integer isrecommand;

    private List<GoodsPhoto> list;

    public List<GoodsPhoto> getList() {
        return list;
    }

    public void setList(List<GoodsPhoto> list) {
        this.list = list;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsSerial() {
        return goodsSerial;
    }

    public void setGoodsSerial(String goodsSerial) {
        this.goodsSerial = goodsSerial;
    }

    public String getGoodsImg() {
        return goodsImg;
    }

    public void setGoodsImg(String goodsImg) {
        this.goodsImg = goodsImg;
    }

    public Integer getGoodsSort() {
        return goodsSort;
    }

    public void setGoodsSort(Integer goodsSort) {
        this.goodsSort = goodsSort;
    }

    public Integer getTypeParentId() {
        return typeParentId;
    }

    public void setTypeParentId(Integer typeParentId) {
        this.typeParentId = typeParentId;
    }

    public Integer getTypeMiddleId() {
        return typeMiddleId;
    }

    public void setTypeMiddleId(Integer typeMiddleId) {
        this.typeMiddleId = typeMiddleId;
    }

    public Integer getTypeSubId() {
        return typeSubId;
    }

    public void setTypeSubId(Integer typeSubId) {
        this.typeSubId = typeSubId;
    }

    public Integer getStoreNumber() {
        return storeNumber;
    }

    public void setStoreNumber(Integer storeNumber) {
        this.storeNumber = storeNumber;
    }

    public Integer getSelledNumber() {
        return selledNumber;
    }

    public void setSelledNumber(Integer selledNumber) {
        this.selledNumber = selledNumber;
    }

    public Integer getWarnNumber() {
        return warnNumber;
    }

    public void setWarnNumber(Integer warnNumber) {
        this.warnNumber = warnNumber;
    }

    public Double getMarketPrice() {
        return marketPrice;
    }

    public void setMarketPrice(Double marketPrice) {
        this.marketPrice = marketPrice;
    }

    public Double getShopPrice() {
        return shopPrice;
    }

    public void setShopPrice(Double shopPrice) {
        this.shopPrice = shopPrice;
    }

    public Integer getGoodsEnable() {
        return goodsEnable;
    }

    public void setGoodsEnable(Integer goodsEnable) {
        this.goodsEnable = goodsEnable;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public Integer getIsnew() {
        return isnew;
    }

    public void setIsnew(Integer isnew) {
        this.isnew = isnew;
    }

    public Integer getIshot() {
        return ishot;
    }

    public void setIshot(Integer ishot) {
        this.ishot = ishot;
    }

    public Integer getIsrecommand() {
        return isrecommand;
    }

    public void setIsrecommand(Integer isrecommand) {
        this.isrecommand = isrecommand;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        GoodsInfo goodsInfo = (GoodsInfo) o;
        return Objects.equals(goodsId, goodsInfo.goodsId) && Objects.equals(goodsName, goodsInfo.goodsName) && Objects.equals(goodsSerial, goodsInfo.goodsSerial) && Objects.equals(goodsImg, goodsInfo.goodsImg) && Objects.equals(goodsSort, goodsInfo.goodsSort) && Objects.equals(typeParentId, goodsInfo.typeParentId) && Objects.equals(typeMiddleId, goodsInfo.typeMiddleId) && Objects.equals(typeSubId, goodsInfo.typeSubId) && Objects.equals(storeNumber, goodsInfo.storeNumber) && Objects.equals(selledNumber, goodsInfo.selledNumber) && Objects.equals(warnNumber, goodsInfo.warnNumber) && Objects.equals(marketPrice, goodsInfo.marketPrice) && Objects.equals(shopPrice, goodsInfo.shopPrice) && Objects.equals(goodsEnable, goodsInfo.goodsEnable) && Objects.equals(summary, goodsInfo.summary) && Objects.equals(isnew, goodsInfo.isnew) && Objects.equals(ishot, goodsInfo.ishot) && Objects.equals(isrecommand, goodsInfo.isrecommand);
    }

    @Override
    public int hashCode() {
        return Objects.hash(goodsId, goodsName, goodsSerial, goodsImg, goodsSort, typeParentId, typeMiddleId, typeSubId, storeNumber, selledNumber, warnNumber, marketPrice, shopPrice, goodsEnable, summary, isnew, ishot, isrecommand);
    }

    @Override
    public String toString() {
        return "GoodsInfo{" +
                "goodsId=" + goodsId +
                ", goodsName='" + goodsName + '\'' +
                ", goodsSerial='" + goodsSerial + '\'' +
                ", goodsImg='" + goodsImg + '\'' +
                ", goodsSort=" + goodsSort +
                ", typeParentId=" + typeParentId +
                ", typeMiddleId=" + typeMiddleId +
                ", typeSubId=" + typeSubId +
                ", storeNumber=" + storeNumber +
                ", selledNumber=" + selledNumber +
                ", warnNumber=" + warnNumber +
                ", marketPrice=" + marketPrice +
                ", shopPrice=" + shopPrice +
                ", goodsEnable=" + goodsEnable +
                ", summary='" + summary + '\'' +
                ", isnew=" + isnew +
                ", ishot=" + ishot +
                ", isrecommand=" + isrecommand +
                '}';
    }
}

